package com.eduadmin.mapper;

import com.eduadmin.entity.StatisticsFinished;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface StatisticsFinishedMapper {
    // 获取所有已经统计的信息
    List<StatisticsFinished> getAllStatisticsFinished(Integer offset,Integer rows);
    List<StatisticsFinished> getAllStatisticsFinishedByParams(Map<String,Object> paraMap);
    // 获取已经统计的所有记录的条数
    int getAllStatisticsFinishedNumber();
    //按参数给定的条件查询表t_statistics_finished,返回记录的条数n,若n>0,表示已经统计过，否则，没有统计过 。
    int isHaveStatistics(Map<String,Object> paraMap);
    int deleteByParams(Map<String,Object> paraMap);
    int deleteByPrimaryKey(Integer statisticsFinishedId);
    int insert(StatisticsFinished record);
//
//    int insertSelective(StatisticsFinished record);
//
//    StatisticsFinished selectByPrimaryKey(Integer statisticsFinishedId);
//
//    int updateByPrimaryKeySelective(StatisticsFinished record);
//
//    int updateByPrimaryKey(StatisticsFinished record);
}